/*
 * StyledDocumentDelegate.h  0.4.0 / Dec 04, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef STYLEDDOCUMENTDELEGATE_H
#define STYLEDDOCUMENTDELEGATE_H

#include "Cute4jSwing.h"

#include "TextDocumentDelegate.h"

// StyledDocumentDelegate Class. -----------------------------------------------

/*!
 * \brief Styled Document Delegate.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT StyledDocumentDelegate : public TextDocumentDelegate
{
  Q_OBJECT
protected:
  StyledDocumentDelegate(JNIEnv *env, jobject obj);
public slots: // native calls
  void setWordWrap(JNIEnv *env, jboolean wrapText);
public: // native calls
  static jlong newInstance(JNIEnv *env, jobject obj);
};

// Macro Definition. -----------------------------------------------------------

#define STYLED_DOCUMENT_DELEGATE \
    (reinterpret_cast<StyledDocumentDelegate *>(delegate))

#endif // STYLEDDOCUMENTDELEGATE_H
